package com.fileoperation.model;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by Administrator on 2016-12-22.
 */

public class Photo {
    String fileName;
    String path;
    int size;
    String cloudPath;
    boolean check;



    @Override
    public String toString() {
        return "path:" + path + " fileName:" + fileName;
    }

    public Photo(String fileName, String path, long size) {
        this.fileName = fileName;
        this.path = path;
        this.size = (int) size;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public int getSize() {
        return size;
    }

    public void setCloudPath(String cloudPath) {
        this.cloudPath = cloudPath;
    }

    public String getCloudPath() {
        return cloudPath;
    }

    public boolean isCheck() {
        return check;
    }

    public void setCheck(boolean check) {
        this.check = check;
    }

    @Override
    public boolean equals(Object obj) {
        return obj instanceof Photo && this.fileName.equals(((Photo) obj).fileName);
    }
}
